import service from "@/utils/fetch";
const post = {
  //查询商户续费规则列表
  tenantRenewRuleList(params) {
    return service({
      method: "get",
      params,
      url: "/api/tenantRenewRule/"
    });
  },

  //新增商户续费规则
  addSellerAnnualFee(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/tenantRenewRule/"
    });
  },

  //修改商户续费规则
  updateSellerAnnualFee(params) {
    return service({
      method: "put",
      data: params,
      url: "/api/tenantRenewRule/"
    });
  },

  //删除商户续费规则
  deleteSellerAnnualFee(ids) {
    return service({
      method: "delete",
      data: ids,
      url: "/api/tenantRenewRule/"
    });
  },

  // 查询商户续费表列表
  tenantRenewList(params) {
    return service({
      method: "get",
      params,
      url: "/api/tenantRenew/"
    });
  },

  // 审核商户续费
  auditSellerAnnualFee(params) {
    return service({
      method: "post",
      data: params,
      url: "/api/tenantRenew/check"
    });
  },
};

export default post;
